home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / cbm / 4537 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: cosy.sbg.ac.at!not-for-mail
  2. From: gwesp@dodo.cosy.sbg.ac.at (Gerhard Wesp)
  3. Newsgroups: comp.sys.cbm,gnu.gcc,de.comp.gnu,comp.sys.atari.8bit
  4. Subject: Re: GNU C-compiler port to 6502
  5. Date: 25 Mar 1996 15:04:18 +0100
  6. Organization: Dept. of CS, University of Salzburg
  7. Message-ID: <4j6952$4pc@dodo.cosy.sbg.ac.at>
  8. References: <4irqpb$7pc@esel.cosy.sbg.ac.at> <DoMHs1.M3M@iglou.com> <4isha9$s6g@charm.magnus.acs.ohio-state.edu>
  9. NNTP-Posting-Host: dodo.cosy.sbg.ac.at
  10.  
  11. In article <4isha9$s6g@charm.magnus.acs.ohio-state.edu>,
  12. Rob Funk <rfunk@magnus.acs.ohio-state.edu> wrote:
  13. :
  14. >>write a cross-compiler that produces 6502 code on some other system.
  15. >
  16. >That's been done: cc65
  17. :
  18.  
  19.  You probably mean the lcc port I mentioned in my initial posting?
  20.  
  21. With this I tried to compile code containig the fragment
  22.  
  23.  while(*p) ;
  24.  
  25. with p being a char *.
  26. The resulting assembly code was really a Bad Thing: It contained about ten
  27. instructions, (involving integer promotion of *p) where a simple
  28.  
  29.        ldy #0
  30. label: bit (p),y
  31.        bne label
  32.  
  33. or something like that would suffice...
  34.  
  35. I hope that gcc would perform better :-)
  36.  
  37. Greetings,
  38. -Gerhard 
  39.